package ouyangye.person;

public class Pig implements Action {
    private String color; // 颜色


    public Pig() {

    }

    public Pig(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }


    @Override
    public void work() {
        System.out.println(color + "的猪不工作");
    }

    @Override
    public void eat() {
        System.out.println(color + "的猪正在吃饭");
    }

    @Override
    public void sleep() {
        System.out.println(color + "的猪正在睡觉");
    }

    @Override
    public void charge() {
        System.out.println(color + "的猪无需充电");
    }


}